#include <STC15F2K60S2.H>

#define uchar unsigned char
#define uint unsigned int
#define ulong unsigned long

#define LED(X) {P0 = ~X; P2 = P2 & 0x1F | 0x80; P2 &= 0x1F;}
#define BUR(X) {P0 = X; P2 = P2 & 0x1F | 0xA0; P2 &= 0x1F;}
#define COM(X) {P0 = X; P2 = P2 & 0x1F | 0xC0; P2 &= 0x1F;}
#define SEG(X) {P0 = X; P2 = P2 & 0x1F | 0xE0; P2 &= 0x1F;}
